import request from '@/utils/request'

export function login (data) {
  return request({
    url: 'sys/login',
    method: 'POST',
    data
  })
}

// 获取用户的详细信息
export function getUserInfo () {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}

// 获取头像信息
export function getUserDetailById (id) {
  return request({
    url: `/sys/user/${id}`
  })
}

export function logout () {
}
